<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class CPSActiveWidgets</title>
			<link rel="stylesheet" href="../../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class CPSActiveWidgets</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
											<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
						
			</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">CPS provides</p>
	<ul class="tags">
				<li><span class="field">author:</span> Jerry Ablan &lt;<a href="mailto:jablan@pogostick.com">jablan@pogostick.com</a>&gt;</li>
				<li><span class="field">version:</span> SVN: $Id: CPSActiveWidgets.php 243 2009-06-13 01:34:31Z jerryablan@gmail.com $</li>
				<li><span class="field">since:</span> 1.0.0</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_pogostick---helpers---CPSActiveWidgets.php.html">/pogostick/helpers/CPSActiveWidgets.php</a> (line <span class="field">20</span>)
		</p>
		
				
		<pre>CHtml
   |
   --CPSActiveWidgets</pre>
	
			</div>
</div>


	<a name="sec-const-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Class Constant Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
						<span class="disabled">Constants</span> (<a href="#sec-consts">details</a>)
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			<div class="const-summary">
								<div class="const-title">
					<img src="../../media/images/Constant.png" alt=" " />
					<a href="#CHECK" title="details" class="const-name">CHECK</a> = 					<span class="var-type"> 'activeCheckBox'</span>

				</div>
								<div class="const-title">
					<img src="../../media/images/Constant.png" alt=" " />
					<a href="#CHECKLIST" title="details" class="const-name">CHECKLIST</a> = 					<span class="var-type"> 'activeCheckBoxList'</span>

				</div>
								<div class="const-title">
					<img src="../../media/images/Constant.png" alt=" " />
					<a href="#CODEDD" title="details" class="const-name">CODEDD</a> = 					<span class="var-type"> 'activeCodeDropDownList'</span>

				</div>
								<div class="const-title">
					<img src="../../media/images/Constant.png" alt=" " />
					<a href="#DROPDOWN" title="details" class="const-name">DROPDOWN</a> = 					<span class="var-type"> 'activeDropDownList'</span>

				</div>
								<div class="const-title">
					<img src="../../media/images/Constant.png" alt=" " />
					<a href="#FILE" title="details" class="const-name">FILE</a> = 					<span class="var-type"> 'activeFileField'</span>

				</div>
								<div class="const-title">
					<img src="../../media/images/Constant.png" alt=" " />
					<a href="#HIDDEN" title="details" class="const-name">HIDDEN</a> = 					<span class="var-type"> 'activeHiddenField'</span>

				</div>
								<div class="const-title">
					<img src="../../media/images/Constant.png" alt=" " />
					<a href="#JQUI" title="details" class="const-name">JQUI</a> = 					<span class="var-type"> 'CPSjqUIWrapper'</span>

				</div>
								<div class="const-title">
					<img src="../../media/images/Constant.png" alt=" " />
					<a href="#LISTBOX" title="details" class="const-name">LISTBOX</a> = 					<span class="var-type"> 'activeListBox'</span>

				</div>
								<div class="const-title">
					<img src="../../media/images/Constant.png" alt=" " />
					<a href="#MARKITUP" title="details" class="const-name">MARKITUP</a> = 					<span class="var-type"> 'markItUp'</span>

				</div>
								<div class="const-title">
					<img src="../../media/images/Constant.png" alt=" " />
					<a href="#PASSWORD" title="details" class="const-name">PASSWORD</a> = 					<span class="var-type"> 'activePasswordField'</span>

				</div>
								<div class="const-title">
					<img src="../../media/images/Constant.png" alt=" " />
					<a href="#RADIO" title="details" class="const-name">RADIO</a> = 					<span class="var-type"> 'activeRadioButton'</span>

				</div>
								<div class="const-title">
					<img src="../../media/images/Constant.png" alt=" " />
					<a href="#RADIOLIST" title="details" class="const-name">RADIOLIST</a> = 					<span class="var-type"> 'activeRadioButtonList'</span>

				</div>
								<div class="const-title">
					<img src="../../media/images/Constant.png" alt=" " />
					<a href="#TEXT" title="details" class="const-name">TEXT</a> = 					<span class="var-type"> 'activeTextField'</span>

				</div>
								<div class="const-title">
					<img src="../../media/images/Constant.png" alt=" " />
					<a href="#TEXTAREA" title="details" class="const-name">TEXTAREA</a> = 					<span class="var-type"> 'activeTextArea'</span>

				</div>
								<div class="const-title">
					<img src="../../media/images/Constant.png" alt=" " />
					<a href="#WYSIWYG" title="details" class="const-name">WYSIWYG</a> = 					<span class="var-type"> 'wysiwyg'</span>

				</div>
							</div>
		</div>
	</div>


	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
							
									<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
												<div class="method-definition">
					static 						<span class="method-result">string</span>
										<a href="#activeCodeDropDownList" title="details" class="method-name">activeCodeDropDownList</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$sAttribute</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$sCodeType</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$arHtmlOptions</span> = <span class="var-default">array()</span>], [<span class="var-type">integer</span>&nbsp;<span class="var-name">$iDefaultUID</span> = <span class="var-default">0</span>])
									</div>
																<div class="method-definition">
					static 						<span class="method-result">string</span>
										<a href="#activeField" title="details" class="method-name">activeField</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$eFieldType</span>, <span class="var-type">CModel</span>&nbsp;<span class="var-name">$oModel</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$sColName</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$arHtmlOptions</span> = <span class="var-default">array()</span>], [<span class="var-type">array</span>&nbsp;<span class="var-name">$arWidgetOptions</span> = <span class="var-default">array()</span>], [<span class="var-type">array</span>&nbsp;<span class="var-name">$arData</span> = <span class="var-default">null</span>])
									</div>
																<div class="method-definition">
					static 						<span class="method-result">string</span>
										<a href="#simpleActiveBlock" title="details" class="method-name">simpleActiveBlock</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$eFieldType</span>, <span class="var-type">CModel</span>&nbsp;<span class="var-name">$oModel</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$sColName</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$arOptions</span> = <span class="var-default">array()</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$sLabel</span> = <span class="var-default">null</span>], [<span class="var-type">array</span>&nbsp;<span class="var-name">$arLabelOptions</span> = <span class="var-default">array()</span>], [<span class="var-type">array</span>&nbsp;<span class="var-name">$arData</span> = <span class="var-default">null</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$arWidgetOptions</span> = <span class="var-default">array()</span>])
									</div>
								
																												</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																		<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
							
										<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="methodactiveCodeDropDownList" id="activeCodeDropDownList"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">static method activeCodeDropDownList</span> (line <span class="line-number">176</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Create a drop downlist filled with codes give a code type.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">string</span>
		<span class="method-name">
			activeCodeDropDownList
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$sAttribute</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$sCodeType</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$arHtmlOptions</span> = <span class="var-default">array()</span>], [<span class="var-type">integer</span>&nbsp;<span class="var-name">$iDefaultUID</span> = <span class="var-default">0</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$sAttribute</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$sCodeType</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$arHtmlOptions</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$iDefaultUID</span>			</li>
				</ul>
		
			
	</div>
<a name="methodactiveField" id="activeField"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">static method activeField</span> (line <span class="line-number">98</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Adds an activefield to a form</p>
<p class="description"><p>There are two special options you can use in $arHtmlOptions:</p><p>_appendHtml		--	Extra Html code/scripts to be inserted AFTER the form element has been created    _widget			--	The name of the jQuery UI widget to create when type = self::JQUI</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">string</span>
		<span class="method-name">
			activeField
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$eFieldType</span>, <span class="var-type">CModel</span>&nbsp;<span class="var-name">$oModel</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$sColName</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$arHtmlOptions</span> = <span class="var-default">array()</span>], [<span class="var-type">array</span>&nbsp;<span class="var-name">$arWidgetOptions</span> = <span class="var-default">array()</span>], [<span class="var-type">array</span>&nbsp;<span class="var-name">$arData</span> = <span class="var-default">null</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$eFieldType</span><span class="var-description">: One of the * constants</span>			</li>
					<li>
				<span class="var-type">CModel</span>
				<span class="var-name">$oModel</span><span class="var-description">: The model for this form</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$sColName</span><span class="var-description">: The column/attribute name</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$arHtmlOptions</span><span class="var-description">: The htmlOptions for the field</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$arWidgetOptions</span><span class="var-description">: The widget options for the field</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$arData</span><span class="var-description">: Any data necessary for the field (i.e. drop down data)</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsimpleActiveBlock" id="simpleActiveBlock"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">static method simpleActiveBlock</span> (line <span class="line-number">63</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Adds a simple div block with label and field</p>
<p class="description"><p>If $sLabel is null, $sColName is used as your label name</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">string</span>
		<span class="method-name">
			simpleActiveBlock
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$eFieldType</span>, <span class="var-type">CModel</span>&nbsp;<span class="var-name">$oModel</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$sColName</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$arOptions</span> = <span class="var-default">array()</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$sLabel</span> = <span class="var-default">null</span>], [<span class="var-type">array</span>&nbsp;<span class="var-name">$arLabelOptions</span> = <span class="var-default">array()</span>], [<span class="var-type">array</span>&nbsp;<span class="var-name">$arData</span> = <span class="var-default">null</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$arWidgetOptions</span> = <span class="var-default">array()</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$eFieldType</span><span class="var-description">: One of the * constants</span>			</li>
					<li>
				<span class="var-type">CModel</span>
				<span class="var-name">$oModel</span><span class="var-description">: The model for this form</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$sColName</span><span class="var-description">: The column/attribute name</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$arOptions</span><span class="var-description">: The htmlOptions for the field</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$sLabel</span><span class="var-description">: The real name of the attribute if different</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$arLabelOptions</span><span class="var-description">: The htmlOptions for the label</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$arData</span><span class="var-description">: Any data necessary for the field (i.e. drop down data)</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$arWidgetOptions</span>			</li>
				</ul>
		
			
	</div>

						
		</div>
	</div>

	<a name="sec-consts"></a>
	<div class="info-box">
		<div class="info-box-title">Class Constants</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
										<a href="#sec-var-summary">Constants</a> (<span class="disabled">details</span>)
						
			
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			<a name="constCHECK" id="CHECK"><!-- --></A>
<div class="oddrow">

	<div class="const-header">
		<img src="../../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">CHECK</span>
			 = <span class="const-default"> 'activeCheckBox'</span>
			(line <span class="line-number">35</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
	
</div>
<a name="constCHECKLIST" id="CHECKLIST"><!-- --></A>
<div class="evenrow">

	<div class="const-header">
		<img src="../../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">CHECKLIST</span>
			 = <span class="const-default"> 'activeCheckBoxList'</span>
			(line <span class="line-number">38</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
	
</div>
<a name="constCODEDD" id="CODEDD"><!-- --></A>
<div class="oddrow">

	<div class="const-header">
		<img src="../../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">CODEDD</span>
			 = <span class="const-default"> 'activeCodeDropDownList'</span>
			(line <span class="line-number">42</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
	
</div>
<a name="constDROPDOWN" id="DROPDOWN"><!-- --></A>
<div class="evenrow">

	<div class="const-header">
		<img src="../../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">DROPDOWN</span>
			 = <span class="const-default"> 'activeDropDownList'</span>
			(line <span class="line-number">36</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
	
</div>
<a name="constFILE" id="FILE"><!-- --></A>
<div class="oddrow">

	<div class="const-header">
		<img src="../../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">FILE</span>
			 = <span class="const-default"> 'activeFileField'</span>
			(line <span class="line-number">33</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
	
</div>
<a name="constHIDDEN" id="HIDDEN"><!-- --></A>
<div class="evenrow">

	<div class="const-header">
		<img src="../../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">HIDDEN</span>
			 = <span class="const-default"> 'activeHiddenField'</span>
			(line <span class="line-number">31</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
	
</div>
<a name="constJQUI" id="JQUI"><!-- --></A>
<div class="oddrow">

	<div class="const-header">
		<img src="../../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">JQUI</span>
			 = <span class="const-default"> 'CPSjqUIWrapper'</span>
			(line <span class="line-number">43</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
	
</div>
<a name="constLISTBOX" id="LISTBOX"><!-- --></A>
<div class="evenrow">

	<div class="const-header">
		<img src="../../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">LISTBOX</span>
			 = <span class="const-default"> 'activeListBox'</span>
			(line <span class="line-number">37</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
	
</div>
<a name="constMARKITUP" id="MARKITUP"><!-- --></A>
<div class="oddrow">

	<div class="const-header">
		<img src="../../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">MARKITUP</span>
			 = <span class="const-default"> 'markItUp'</span>
			(line <span class="line-number">41</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
	
</div>
<a name="constPASSWORD" id="PASSWORD"><!-- --></A>
<div class="evenrow">

	<div class="const-header">
		<img src="../../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">PASSWORD</span>
			 = <span class="const-default"> 'activePasswordField'</span>
			(line <span class="line-number">32</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
	
</div>
<a name="constRADIO" id="RADIO"><!-- --></A>
<div class="oddrow">

	<div class="const-header">
		<img src="../../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">RADIO</span>
			 = <span class="const-default"> 'activeRadioButton'</span>
			(line <span class="line-number">34</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
	
</div>
<a name="constRADIOLIST" id="RADIOLIST"><!-- --></A>
<div class="evenrow">

	<div class="const-header">
		<img src="../../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">RADIOLIST</span>
			 = <span class="const-default"> 'activeRadioButtonList'</span>
			(line <span class="line-number">39</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
	
</div>
<a name="constTEXT" id="TEXT"><!-- --></A>
<div class="oddrow">

	<div class="const-header">
		<img src="../../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">TEXT</span>
			 = <span class="const-default"> 'activeTextField'</span>
			(line <span class="line-number">30</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
	
</div>
<a name="constTEXTAREA" id="TEXTAREA"><!-- --></A>
<div class="evenrow">

	<div class="const-header">
		<img src="../../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">TEXTAREA</span>
			 = <span class="const-default"> 'activeTextArea'</span>
			(line <span class="line-number">29</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">These are a list of form elements that can be used along with the methods in this class.</p>
	
	
</div>
<a name="constWYSIWYG" id="WYSIWYG"><!-- --></A>
<div class="oddrow">

	<div class="const-header">
		<img src="../../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">WYSIWYG</span>
			 = <span class="const-default"> 'wysiwyg'</span>
			(line <span class="line-number">40</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
	
</div>
						
		</div>
	</div>

	<p class="notes" id="credit">
		Documentation generated on Mon, 15 Jun 2009 22:58:09 -0400 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.2</a>
	</p>
	</div></body>
</html>